import http from "@/api";
import { PORT1 } from "@/api/config/servicePort";

// 项目概述
export const chartProject = (params: any) => {
  return http.post(PORT1 + `/chart/project`, params, { noLoading: true });
};
// 项目数量
export const projectCount = (params: any) => {
  return http.post(PORT1 + `/chart/project/count`, params, { noLoading: true });
};
// 项目分布排行
export const projectCity = (params: any) => {
  return http.post(PORT1 + `/chart/project/city`, params, { noLoading: true });
};
// 项目问题
export const projectProblem = (params: any) => {
  return http.post(PORT1 + `/chart/project/problem`, params, { noLoading: true });
};
// 项目问题分布
export const problemType = (params: any) => {
  return http.post(PORT1 + `/chart/project/problem/type`, params, { noLoading: true });
};
// 项目日报
export const chartReport = (params: any) => {
  return http.post(PORT1 + `/chart/report`, params, { noLoading: true });
};
// 当前项目人员分布
export const projectUser = (params: any) => {
  return http.post(PORT1 + `/chart/project/user`, params, { noLoading: true });
};
// 项目-当前项目人员角色列表
export const projectRole = (params: any) => {
  return http.get(PORT1 + `/chart/project/role`, params, { noLoading: true });
};
// 项目统计
export const projectPage = (params: any) => {
  return http.post(PORT1 + `/project/page`, params);
};
// 新增
export const projectAdd = (params: any) => {
  return http.post(PORT1 + `/project/add`, params);
};
// 删除
export const projectDel = (params: any) => {
  return http.get(PORT1 + `/project/delete`, params);
};
// 修改
export const projectUpdate = (params: any) => {
  return http.post(PORT1 + `/project/update`, params);
};
// 详情
export const projectDetail = (params: any) => {
  return http.get(PORT1 + `/project/detail`, params);
};

// 日报统计
export const reportPage = (params: any) => {
  return http.post(PORT1 + `/report/page`, params);
};
// 新增
export const reportAdd = (params: any) => {
  return http.post(PORT1 + `/report/add`, params);
};
// 删除
export const reportDel = (params: any) => {
  return http.get(PORT1 + `/report/delete`, params);
};
// 修改
export const reportUpdate = (params: any) => {
  return http.post(PORT1 + `/report/update`, params);
};
// 详情
export const reportDetail = (params: any) => {
  return http.get(PORT1 + `/report/detail`, params);
};

// 项目文件
export const filesPage = (params: any) => {
  return http.post(PORT1 + `/project/files/page`, params);
};
// 新增
export const filesAdd = (params: any) => {
  return http.post(PORT1 + `/project/files/add`, params);
};
// 删除
export const filesDel = (params: any) => {
  return http.get(PORT1 + `/project/files/delete`, params);
};
// 修改
export const filesUpdate = (params: any) => {
  return http.post(PORT1 + `/project/files/update`, params);
};
// 详情
export const filesDetail = (params: any) => {
  return http.get(PORT1 + `/project/files/detail`, params);
};

// 客户-客户地区分布
export const companyCity = (params: any) => {
  return http.post(PORT1 + `/chart/company/city`, params);
};

// 客户-客户意向车型
export const companyProduct = (params: any) => {
  return http.post(PORT1 + `/chart/company/product`, params, { noLoading: true });
};

// 客户-客户状态报表
export const companyStatus = (params: any) => {
  return http.post(PORT1 + `/chart/company/status`, params, { noLoading: true });
};

// 客户-客户阶段报表
export const companyStage = (params: any) => {
  return http.post(PORT1 + `/chart/company/stage`, params, { noLoading: true });
};

// 客户-客户行业报表
export const companyIndustry = (params: any) => {
  return http.post(PORT1 + `/chart/company/industry`, params, { noLoading: true });
};

// 客户-客户来源报表
export const companySource = (params: any) => {
  return http.post(PORT1 + `/chart/company/source`, params, { noLoading: true });
};
// 客户-重要程度报表
export const companyImportance = (params: any) => {
  return http.post(PORT1 + `/chart/company/importance`, params, { noLoading: true });
};

// 客户-客户类型报表
export const companyType = (params: any) => {
  return http.post(PORT1 + `/chart/company/type`, params, { noLoading: true });
};
